package com.ossjk.qlh.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author chair
 * @since 2020-03-21
 */
@ApiModel(value = "权限")
public class Permission extends BaseEntity<Permission> {

	private static final long serialVersionUID = 1L;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名", required = true)
	@TableField("name")
	private String name;
	/**
	 * 类型1-展示菜单、2-功能菜单、3功能按钮
	 */
	@ApiModelProperty(value = "类型 1-展示菜单、2-功能菜单、3功能按钮", required = true)
	@TableField("type")
	private Integer type;
	/**
	 * 父id
	 */
	@ApiModelProperty(value = "父id", required = true)
	@TableField("pid")
	private String pid;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序", required = true)
	@TableField("sort")
	private Integer sort;
	/**
	 * 等级
	 */
	@ApiModelProperty(value = "等级", required = true)
	@TableField("level")
	private Integer level;
	/**
	 * 权限编码
	 */
	@ApiModelProperty(value = "权限编码", required = true)
	@TableField("code")
	private String code;
	/**
	 * 图标
	 */
	@ApiModelProperty(value = "图标" )
	@TableField("icon")
	private String icon;
	/**
	 * 地址
	 */
	@ApiModelProperty(value = "url"  )
	@TableField("url")
	private String url;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注" )
	@TableField("remarks")
	private String remarks;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Permission{" + ", id=" + id + ", name=" + name + ", type=" + type + ", pid=" + pid + ", sort=" + sort + ", level=" + level + ", code=" + code + ", icon=" + icon + ", url=" + url + ", remarks=" + remarks + "}";
	}
}
